<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="/css/css.css" rel="stylesheet" type="text/css" />
<link href="/css/dtree.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../scripts/dtreeAuth.js"></script>
<style type="text/css">
 .searchtag {display: inline;}
 .searchtag dd {
    color: #5C5C5C;
    background:#FEF9DE;
    display: inline;
    float: left;
    white-space: nowrap;
    margin-left:10px;
    padding:1px;
}

.searchtag dd span {background: url("../images/sprite.png") no-repeat scroll -126px -30px transparent; 
    cursor: pointer;
    display: inline-block;
    height: 12px;
    overflow: hidden;
    position: relative;
    top: 2px;
    width: 13px;

    }
    
    
.searchtag {
    position: relative;
}
.searchtag dt {
    left: 15px;
    position: absolute;
    top: 10px;
}
#keyword_list_div {}
#keyword_list_div span {color: #5C5C5C; background:#FEF9DE;height:22px;display: inline-block;margin:2px;padding:2px;min-width: 80px;text-align: center;}
.content_main table td {text-align: left;}

</style>

</head>
<body>
<div id="all_main">
  <div class="head_main">
    <div class="main_nav">场地管理->添加场地</div>
    <div class="main_soso">
    	
    </div>
    <div class="main_title">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <th width="100%" style="border-left:none;text-align: left;font-weight: normal;">&nbsp; </th>
        </tr>
      </table>
    </div>
  </div>
  <div class="content_main">
    <form action="/address/su_address_info.shtml" name="form01" method="post" enctype="multipart/form-data">
    <input name="id" value="${address.id}"  type="hidden"/>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="background_hegh01">
      <tr>
        <td width="15%" style="border-left:none" align="right">场地名称：</td>
        <td width=""><input name="address.arName" type="text" value="${address.arName}" style="width:240px;" class="inputwidth01" id="address.arName" maxlength="30" /> <span style="color:red;">*</span>
        </td>
      </tr>
       <tr>
        <td width="15%" style="border-left:none" align="right">场地地址：</td>
        <td width=""><input name="address.address" value="${address.address}" type="text" size="8" style="width:240px;" maxlength="32" class="inputwidth01" id="address.address"/>  <span style="color:red;">*</span></td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">场地类型：</td>
        <td width="">
        <select name="address.type">
          <option value="">请选择...</option>
          <app:cons_select code="001" value="${address.type}"></app:cons_select>
        </select> <span style="color:red;">*</span>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">联系电话：</td>
        <td width=""><input name="address.phone" value="${address.phone}" type="text" size="8" style="width:240px;" onkeypress="util.justNum([40,41,45]);" class="inputwidth01" id="address.phone"/> <span style="color:red;">*</span></td>
      </tr>
      
      <tr style="">
        <td width="15%" style="border-left:none" align="right">场地图片：</td>
        <td width="">
               <input name="address.imgPath" readonly="readonly" value="${address.imgPath}" proxy="uploadDiv"  type="hidden" size="8"  class="inputwidth01"  id="album_img_input"/> 
               <div id="uploadDiv" class="uploadDiv">
		                 <a href="#" class="fbtn">选择文件</a><input name="resource" value="" id="uploadFile" size="1" class="ufile" type="file"/>
		                 <div class="rate" id="rate" style="display:none;"></div>
		       </div>
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">场地网址：</td>
        <td width="">
              <input name="address.url" value="${address.url}" type="text" size="8" style="width:240px;" class="inputwidth01" id="address.imgPath"/>
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">场地简介：</td>
        <td width="">
                <textarea rows="8" cols="80" name="address.addDesc">${address.addDesc}</textarea>
                     
        </td>
      </tr>
    </table>
    </form>
  </div>
  <div class="lapel" style="background:#FFFFFF;"><span><input name="" type="button" class="input01" value="保存" onclick="validate.submit(this);"/>&nbsp;
  <input name="" type="button" class="input01" value="返回场地列表" onclick="javascript:document.location='/address/search_address_info.shtml'"/></span></div>
</div>
  <iframe  style="display:none" src="about:blank" name="ifrComposeAttachUpload"></iframe>
</body>
</html>
<script type="text/javascript" src="/scripts/util.js"></script>
<script type="text/javascript" src="/scripts/form_validate.js"></script>
<script type="text/javascript" src="/scripts/calendar.js"></script>
<script type="text/javascript" src="/scripts/xhr.js"></script>
<script type="text/javascript" src="/scripts/wooboo.js"></script>
<script type="text/javascript" src="/system/config_js.shtml"></script>
<script type="text/javascript">

new FILE({div:"uploadDiv",input:"album_img_input",form:"resourceForm",fileinput:"uploadFile",rate:"rate",ftp:Config["image.cache"]});

//new WBFS({url:'/resource/to_resource.shtml',title:'选择文件',btn:"album_img"});
validate.addvalidte(document.form01,{
        rules:{
           "address.arName":{checkNull:true},
           "address.address":{checkNull:true},
           "address.type":{checkNull:true},
           "address.imgPath":{checkNull:true,suffix:/.jpg|.png|.bmp|.gif/i},
           "address.phone":{checkNull:true}
           },
	    message:{
	       /*
	       "address.arName":{checkNull:"&nbsp;"},
	       "address.address":{checkNull:"&nbsp;"},
	       "address.type":{checkNull:"&nbsp"}
	        */
	    }
	    });
	
</script>